﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data.SqlClient;

public partial class frmTipoDocumentoAlta : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {

    }
    protected void Button1_Click(object sender, EventArgs e)
    {

        try
        {
            this.SqlDataSourceAltaTipoDoc.InsertParameters["descTipoDoc"].DefaultValue = this.TextBox1.Text;
            this.SqlDataSourceAltaTipoDoc.Insert();
            this.TextBox1.Text = "";
            this.Label2.Text = "Se ha cargado el Tipo de Doc correctamente";
        }

       
       
         catch (SqlException ex)
         {
             this.Label2.Text = ex.Message;
         }
    }
}